﻿
namespace SQLStore
{
    using Models;
    using System.Data.Entity.ModelConfiguration;
    public class CategoryMap : EntityTypeConfiguration<Category>
    {
        public CategoryMap()
        {
            ToTable("Category");

            HasKey(t => t.CategoryId);

            Property(t => t.CategoryName)
                  .HasColumnName("CategoryName")
                  .HasMaxLength(512);

            Property(t => t.CategoryUrl)
                  .HasColumnName("CategoryUrl")
                  .HasMaxLength(512);
        }

    }
}
